class StringEntry < Entry
  has_one :string_value, :autosave => true
  
  def data
    if self.string_value != nil
      self.string_value.data
    else
      nil
    end
  end
  
  def data=(value)
    if self.string_value != nil
      self.string_value.data = value
    else
      self.string_value = StringValue.new(:data => value)
    end
  end
end
